<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
   <h1>Hello World Struts2</h1>
   <form action="hello">
      <label for="name">Please enter your name</label><br/>
      <input type="text" name="name"/>
      <input type="submit" value="Enter"/>
   </form>
   
   <form action="upload" method="post" enctype="multipart/form-data">
    uploader:<input type="text" name="uploader">
    select file:<input type="file" name="upload">
    <input type="submit" value="Upload">  
   </form>  
   
   <center><h2>${sessionScope.msgSession }</h2>  
    <s:form action="login" method="post">  
        <s:textfield label="INVITATION CODE" name="inputCode"></s:textfield>  
        <s:submit value="Login" />  
    </s:form>  

    <a href="applyCode.jsp" type="button" >Apply a code</a>

    </center> 
    
    <h2>Type your information to register.</h2>

    <s:fielderror />
    <s:form action="register" method="post">   
        <s:textfield label="username" name="user.name" tooltip="name must be over 3 characters"></s:textfield>
        <s:textfield type="password" label="password" name="user.password" tooltip="password must over 6 digits"></s:textfield>
        <s:textfield type="password" label="confirm password" name="user.confirmPassword"></s:textfield>
        <s:textfield label="age" name="user.age" tooltip="age must over 16"></s:textfield>
        <s:textfield label="mobile" name="user.mobile" tooltip="input correct mobile phone number format"></s:textfield>
        <s:textfield label="email" name="user.email" tooltip="input correct email format"></s:textfield>

        <s:submit label="Register"></s:submit>  
   </s:form>  
</body>
</html>